Optimal. Leaf size=153 \[ \frac {\text {ArcTan}(\sinh (c+d x))}{b^3 d}-\frac {\sqrt {a} \left (8 a^2+20 a b+15 b^2\right ) \text {ArcTan}\left (\frac {\sqrt {a} \sinh (c+d x)}{\sqrt {a+b}}\right )}{8 b^3 (a+b)^{5/2} d}-\frac {a \sinh (c+d x)}{4 b (a+b) d \left (a+b+a \sinh ^2(c+d x)\right )^2}-\frac {a (4 a+7 b) \sinh (c+d x)}{8 b^2 (a+b)^2 d \left (a+b+a \sinh ^2(c+d x)\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.15, antiderivative size = 153, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 6, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.261, Rules used = {4232, 425, 541,
536, 209, 211} \begin {gather*} -\frac {\sqrt {a} \left (8 a^2+20 a b+15 b^2\right ) \text {ArcTan}\left (\frac {\sqrt {a} \sinh (c+d x)}{\sqrt {a+b}}\right )}{8 b^3 d (a+b)^{5/2}}-\frac {a (4 a+7 b) \sinh (c+d x)}{8 b^2 d (a+b)^2 \left (a \sinh ^2(c+d x)+a+b\right )}-\frac {a \sinh (c+d x)}{4 b d (a+b) \left (a \sinh ^2(c+d x)+a+b\right )^2}+\frac {\text {ArcTan}(\sinh (c+d x))}{b^3 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 209
Rule 211
Rule 425
Rule 536
Rule 541
Rule 4232
Rubi steps
\begin {align*} \int \frac {\text {sech}^7(c+d x)}{\left (a+b \text {sech}^2(c+d x)\right )^3} \, dx &=\frac {\text {Subst}\left (\int \frac {1}{\left (1+x^2\right ) \left (a+b+a x^2\right )^3} \, dx,x,\sinh (c+d x)\right )}{d}\\ &=-\frac {a \sinh (c+d x)}{4 b (a+b) d \left (a+b+a \sinh ^2(c+d x)\right )^2}+\frac {\text {Subst}\left (\int \frac {a+4 b-3 a x^2}{\left (1+x^2\right ) \left (a+b+a x^2\right )^2} \, dx,x,\sinh (c+d x)\right )}{4 b (a+b) d}\\ &=-\frac {a \sinh (c+d x)}{4 b (a+b) d \left (a+b+a \sinh ^2(c+d x)\right )^2}-\frac {a (4 a+7 b) \sinh (c+d x)}{8 b^2 (a+b)^2 d \left (a+b+a \sinh ^2(c+d x)\right )}+\frac {\text {Subst}\left (\int \frac {4 a^2+9 a b+8 b^2-a (4 a+7 b) x^2}{\left (1+x^2\right ) \left (a+b+a x^2\right )} \, dx,x,\sinh (c+d x)\right )}{8 b^2 (a+b)^2 d}\\ &=-\frac {a \sinh (c+d x)}{4 b (a+b) d \left (a+b+a \sinh ^2(c+d x)\right )^2}-\frac {a (4 a+7 b) \sinh (c+d x)}{8 b^2 (a+b)^2 d \left (a+b+a \sinh ^2(c+d x)\right )}+\frac {\text {Subst}\left (\int \frac {1}{1+x^2} \, dx,x,\sinh (c+d x)\right )}{b^3 d}-\frac {\left (a \left (8 a^2+20 a b+15 b^2\right )\right ) \text {Subst}\left (\int \frac {1}{a+b+a x^2} \, dx,x,\sinh (c+d x)\right )}{8 b^3 (a+b)^2 d}\\ &=\frac {\tan ^{-1}(\sinh (c+d x))}{b^3 d}-\frac {\sqrt {a} \left (8 a^2+20 a b+15 b^2\right ) \tan ^{-1}\left (\frac {\sqrt {a} \sinh (c+d x)}{\sqrt {a+b}}\right )}{8 b^3 (a+b)^{5/2} d}-\frac {a \sinh (c+d x)}{4 b (a+b) d \left (a+b+a \sinh ^2(c+d x)\right )^2}-\frac {a (4 a+7 b) \sinh (c+d x)}{8 b^2 (a+b)^2 d \left (a+b+a \sinh ^2(c+d x)\right )}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 3.15, size = 247, normalized size = 1.61 \begin {gather*} \frac {(a+2 b+a \cosh (2 (c+d x))) \text {sech}^5(c+d x) \left (16 \text {ArcTan}\left (\tanh \left (\frac {1}{2} (c+d x)\right )\right ) (a+2 b+a \cosh (2 (c+d x)))^2 \text {sech}(c+d x)+\frac {\sqrt {a} \left (8 a^2+20 a b+15 b^2\right ) \text {ArcTan}\left (\frac {\sqrt {a+b} \text {csch}(c+d x) \sqrt {(\cosh (c)-\sinh (c))^2} (\cosh (c)+\sinh (c))}{\sqrt {a}}\right ) (a+2 b+a \cosh (2 (c+d x)))^2 \text {sech}(c+d x) (\cosh (c)-\sinh (c))}{(a+b)^{5/2} \sqrt {(\cosh (c)-\sinh (c))^2}}-\frac {8 a b^2 \tanh (c+d x)}{a+b}-\frac {2 a b (4 a+7 b) (a+2 b+a \cosh (2 (c+d x))) \tanh (c+d x)}{(a+b)^2}\right )}{64 b^3 d \left (a+b \text {sech}^2(c+d x)\right )^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(313\) vs.
\(2(139)=278\).
time = 2.00, size = 314, normalized size = 2.05
method | result | size |
derivativedivides | \(\frac {\frac {2 \arctan \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{b^{3}}-\frac {2 a \left (\frac {-\frac {b \left (9 b +4 a \right ) \left (\tanh ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8 \left (a +b \right )}-\frac {b \left (4 a^{2}-11 a b -27 b^{2}\right ) \left (\tanh ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8 \left (a +b \right )^{2}}+\frac {b \left (4 a^{2}-11 a b -27 b^{2}\right ) \left (\tanh ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8 \left (a +b \right )^{2}}+\frac {b \left (9 b +4 a \right ) \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{8 a +8 b}}{\left (a \left (\tanh ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+b \left (\tanh ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+2 a \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-2 b \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+a +b \right )^{2}}+\frac {\left (8 a^{2}+20 a b +15 b^{2}\right ) \left (\frac {\arctan \left (\frac {2 \sqrt {a +b}\, \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )+2 \sqrt {b}}{2 \sqrt {a}}\right )}{2 \sqrt {a +b}\, \sqrt {a}}+\frac {\arctan \left (\frac {2 \sqrt {a +b}\, \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-2 \sqrt {b}}{2 \sqrt {a}}\right )}{2 \sqrt {a +b}\, \sqrt {a}}\right )}{8 a^{2}+16 a b +8 b^{2}}\right )}{b^{3}}}{d}\) | \(314\) |
default | \(\frac {\frac {2 \arctan \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{b^{3}}-\frac {2 a \left (\frac {-\frac {b \left (9 b +4 a \right ) \left (\tanh ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8 \left (a +b \right )}-\frac {b \left (4 a^{2}-11 a b -27 b^{2}\right ) \left (\tanh ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8 \left (a +b \right )^{2}}+\frac {b \left (4 a^{2}-11 a b -27 b^{2}\right ) \left (\tanh ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8 \left (a +b \right )^{2}}+\frac {b \left (9 b +4 a \right ) \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{8 a +8 b}}{\left (a \left (\tanh ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+b \left (\tanh ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+2 a \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-2 b \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+a +b \right )^{2}}+\frac {\left (8 a^{2}+20 a b +15 b^{2}\right ) \left (\frac {\arctan \left (\frac {2 \sqrt {a +b}\, \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )+2 \sqrt {b}}{2 \sqrt {a}}\right )}{2 \sqrt {a +b}\, \sqrt {a}}+\frac {\arctan \left (\frac {2 \sqrt {a +b}\, \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-2 \sqrt {b}}{2 \sqrt {a}}\right )}{2 \sqrt {a +b}\, \sqrt {a}}\right )}{8 a^{2}+16 a b +8 b^{2}}\right )}{b^{3}}}{d}\) | \(314\) |
risch | \(-\frac {{\mathrm e}^{d x +c} a \left (4 a^{2} {\mathrm e}^{6 d x +6 c}+7 a b \,{\mathrm e}^{6 d x +6 c}+4 a^{2} {\mathrm e}^{4 d x +4 c}+31 a b \,{\mathrm e}^{4 d x +4 c}+36 b^{2} {\mathrm e}^{4 d x +4 c}-4 a^{2} {\mathrm e}^{2 d x +2 c}-31 a b \,{\mathrm e}^{2 d x +2 c}-36 b^{2} {\mathrm e}^{2 d x +2 c}-4 a^{2}-7 a b \right )}{4 b^{2} \left (a +b \right )^{2} d \left (a \,{\mathrm e}^{4 d x +4 c}+2 a \,{\mathrm e}^{2 d x +2 c}+4 b \,{\mathrm e}^{2 d x +2 c}+a \right )^{2}}+\frac {i \ln \left ({\mathrm e}^{d x +c}+i\right )}{d \,b^{3}}-\frac {i \ln \left ({\mathrm e}^{d x +c}-i\right )}{d \,b^{3}}+\frac {\sqrt {-a \left (a +b \right )}\, \ln \left ({\mathrm e}^{2 d x +2 c}-\frac {2 \sqrt {-a \left (a +b \right )}\, {\mathrm e}^{d x +c}}{a}-1\right ) a^{2}}{2 \left (a +b \right )^{3} d \,b^{3}}+\frac {5 \sqrt {-a \left (a +b \right )}\, \ln \left ({\mathrm e}^{2 d x +2 c}-\frac {2 \sqrt {-a \left (a +b \right )}\, {\mathrm e}^{d x +c}}{a}-1\right ) a}{4 \left (a +b \right )^{3} d \,b^{2}}+\frac {15 \sqrt {-a \left (a +b \right )}\, \ln \left ({\mathrm e}^{2 d x +2 c}-\frac {2 \sqrt {-a \left (a +b \right )}\, {\mathrm e}^{d x +c}}{a}-1\right )}{16 \left (a +b \right )^{3} d b}-\frac {\sqrt {-a \left (a +b \right )}\, \ln \left ({\mathrm e}^{2 d x +2 c}+\frac {2 \sqrt {-a \left (a +b \right )}\, {\mathrm e}^{d x +c}}{a}-1\right ) a^{2}}{2 \left (a +b \right )^{3} d \,b^{3}}-\frac {5 \sqrt {-a \left (a +b \right )}\, \ln \left ({\mathrm e}^{2 d x +2 c}+\frac {2 \sqrt {-a \left (a +b \right )}\, {\mathrm e}^{d x +c}}{a}-1\right ) a}{4 \left (a +b \right )^{3} d \,b^{2}}-\frac {15 \sqrt {-a \left (a +b \right )}\, \ln \left ({\mathrm e}^{2 d x +2 c}+\frac {2 \sqrt {-a \left (a +b \right )}\, {\mathrm e}^{d x +c}}{a}-1\right )}{16 \left (a +b \right )^{3} d b}\) | \(538\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 4335 vs.
\(2 (139) = 278\).
time = 0.50, size = 7993, normalized size = 52.24 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\operatorname {sech}^{7}{\left (c + d x \right )}}{\left (a + b \operatorname {sech}^{2}{\left (c + d x \right )}\right )^{3}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {1}{{\mathrm {cosh}\left (c+d\,x\right )}^7\,{\left (a+\frac {b}{{\mathrm {cosh}\left (c+d\,x\right )}^2}\right )}^3} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________